package eu.szemraj.net {	import flash.events.ErrorEvent;	import flash.net.NetConnection;	public class Connection extends NetConnection {        public function Connection( objectEncoding:int = 3 ) {      	            super( );            this.objectEncoding = objectEncoding;        }        override public function connect(command:String, ...args):void {      	            try {         	                var params:Array = [command];                for each( var param:* in args ) {         		                    params.push( param );	                }         	                super.connect.apply( null, params );            }         catch( e:Error ) {                         dispatchEvent( new ErrorEvent( e.message ) );            }        }         }}